<?php

@session_start();

class Printrecepit extends Controller {

    function __construct() {
        parent::__construct();
    }

    function index() {
        // echo 'in';exit;
        $sql = new sql();
        $sql->connect();
        $GETID = getId();
        $paymentArray = $_SESSION['paymentArray'];
       
	$GETID = getId();
        $payment_Ref_id = $GETID[1];
			$query = "select * from tbl_order od 
			join tbl_product as prd ON prd.prd_id = od.or_product_id 
			join payment_order as pt ON pt.pt_id = od.payment_ref_id 
			and payment_ref_id = '".$payment_Ref_id."'";
	$AllorderArray = $sql->SimpleQuery($query);
        $sessionArray = $_SESSION['CHECKOUT_DATA'];
            
		
	$this->view->sessionArray = $sessionArray;
        $this->view->allOrderArray = $AllorderArray;
        $this->view->render('printrecepit');
    }

}